package ooday02;
/** 继承测试 */
public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student();
        zs.name = "张三";
        zs.age = 25;
        zs.address = "廊坊";
        zs.className = "jsd2307";
        zs.stuId = "001";
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Student ls = new Student("李四",24,"佳木斯","jsd2307","002");
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.study();

        Teacher ww = new Teacher("王五",35,"山东",6000.0);
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.teach();

        Doctor zl = new Doctor("赵六",45,"山西","主任医师");
        zl.eat();
        zl.sleep();
        zl.sayHi();
        zl.cut();

    }
}













